﻿using HomagChina.CCT.Router;
using HomagGroup.Base.UI.Windows;
using Proxy;
using System.Reflection;
using System.Windows;

namespace HomagChina.CCT
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
        {
        }

        protected override void OnStartup(StartupEventArgs e)
        {
            SplashScreenWindow _SplashScreenWindow = new SplashScreenWindow();
            _SplashScreenWindow.OnStartup("HOMAG CellControl Transport", Assembly.GetExecutingAssembly().GetName().Version.ToString(),
                "HomagChina-CCT", "", "© 2023 - 2024 HOMAG China CellControl Transport");

            //InitSys();
            new RouterModel();
            _SplashScreenWindow.Close();
        }

        public void InitSys()
        {
            PlcHandle plcHandle = new PlcHandle("Dividing Machine", "192.168.43.100.1.1", 851);
            new Auto_InfeedScanner("192.168.43.110", 6000);
            new ManualScanner("192.168.43.111", 51000);
            DealWithFiles dealWithFiles = new DealWithFiles();
            new InfeedHandle();
            new MachineHandle();
            new OutfeedHandle();

        }
    }
}